package com.miao.springmt.service.impl;

import com.miao.springmt.mapper.CustomerMapper;
import com.miao.springmt.pojo.Customer;
import com.miao.springmt.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("CustomerService")
@Transactional
public class CustomerServiceImpl implements CustomerService {
    @Autowired
    CustomerMapper customerMapper;

    @Override
    public Customer queryById(String id){
        return customerMapper.selectByPrimaryKey(id);
    }
}
